import axios from '@/libs/api.request'

// 添加
export const addMemberCard = (data) => {
  return axios.request({
    url: '/admin/card/member/add',
    data,
    method: 'post'
  })
}

// 删除
export const deleteMemberCard = (id) => {
  return axios.request({
    url: `/admin/card/member/delete/${id}`,
    method: 'get'
  })
}

// 列表
export const memberCardList = (data) => {
  return axios.request({
    url: `/admin/card/member/pageList`,
    data,
    method: 'post'
  })
}

// 修改
export const updateCard = (data) => {
  return axios.request({
    url: `/admin/card/member/update`,
    data,
    method: 'post'
  })
}
